package com.example.week02.day1.Broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.example.week02.day1.Constants.Constants;

public class Receiver_1 extends BroadcastReceiver {

    private final static String TAG = "Receiver_1";

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        Log.d(TAG,"action is--->" + action);
        String content = intent.getStringExtra(Constants.KEY_CONTENT);
        Log.d(TAG,"content is--->" + content);
    }
}